package cn.vivi.blog.client;


import cn.vivi.common.entity.Tag;
import cn.vivi.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient("tag-service")
public interface TagServiceClient {

    @GetMapping("/tags/blog/{id}")
    Result<List<Tag>> findByBlogId(@PathVariable("id") String id);

}
